package com.rainbow.config

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.web.client.RestTemplateBuilder
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.web.client.RestTemplate

@Configuration
class RestConfiguration {

    @Autowired
    private lateinit var builder: RestTemplateBuilder

    @Bean
    fun restTemplate() = builder.build()
}